package com.wy2.eclipse.tool.lib.neoodb;

import java.io.File;

public class SessionFactory {

    public final static String DB_SUFFIX=".odb"; 
    
    private String dbSuffix=DB_SUFFIX;
    
	/**
	 * 数据库位置
	 */
	private final File dbDirectory;

	public SessionFactory(File dbDirectory) {
		super();
		this.dbDirectory = dbDirectory;
	}
	
	public Session createSession(String dbName) {
		return new Session(new File(dbDirectory, dbName+dbSuffix));
	}

	
	
	
}
